﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PortalParts/Portal.Master" AutoEventWireup="true" CodeBehind="PhotoWallList.aspx.cs" Inherits="ZHDJ.Web.Portal.PhotoWall.PhotoWallList" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="/Resource/themes/default/css/party.picture.wall.css" rel="stylesheet" />
    <style type="text/css">
        .pages {
            color: #999;
            overflow: auto;
			margin: 0 auto;
        }

        .pages a,
		.pages .cpb {
            text-decoration: none;
            float: left;
            padding: 4px 9px;
            border: 1px solid #ddd;
            background: #fff;
			color: #666;
            margin: 0 4px;
            font-size: 14px;
        }

        .pages a:hover {	
            color: #f00;
            border: 1px solid #f00;
            text-decoration: none;
        }

        .pages .cpb {
            color: #f00;
            border: 1px solid #f00;
        }
    	.bgline {
    		margin-bottom: 20px;
		}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="width: 100%;">
        <div class="party-navigation" style="border: none;">
            当前位置：<a href="/Default.aspx">首页</a> > <a href="PhotoWallList.aspx?PageIndex=1">留影墙</a>
        </div>
        <div class="bgline"></div>
        <div class="mywrap">
            <div class="mywrapleft">留影墙</div>
        </div>
        <div style="width: 100%; margin: 20px auto;">
            <table style="width: 480px; height: 40px; line-height: 40px;">
                <tr>
                    <td>关键字：</td>
                    <td>
                        <asp:TextBox ID="txtTitle" runat="server" Width="120px" Height="38px"></asp:TextBox>
                    </td>
                    <td>图片类型：</td>
                    <td>
                        <asp:DropDownList ID="ddlCategory" runat="server" Width="120px" Height="38px" AutoPostBack="true" OnSelectedIndexChanged="ddlCategory_SelectedIndexChanged"></asp:DropDownList>
                    </td>
                    <td>
                        <asp:Button runat="server" ID="btnQuery" Text="查询" Width="50px" Height="38px" OnClick="btnQuery_Click" />
                    </td>
                </tr>
            </table>
        </div>
        <div>
            <ul class="widget-pic-list">
                <asp:Repeater ID="Repeater1" runat="server">
                    <ItemTemplate>
                        <li class="widget-pic-list-info">
                            <a href="PhotoWallPage.aspx?PhotoWallID=<%#Eval("ID") %>" target="_blank">
                                <img width="168" height="117" src='/<%#Eval("Url") %>' /><br />
                                <p>
                                    <%#Eval("Title") %>
                                </p>
                            </a>
                            <table style="width: 100%; text-align: left; margin-bottom: 10px;">
                                <tr>
                                    <td style="padding-left: 4%; width: 32%;">作 者:</td>
                                    <td>
                                        <%#Eval("UserName")%>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="padding-left: 4%;">所属组织:</td>
                                    <td>
                                        <div style="width: 130px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;"><%#ZHDJ.WebPage.ControlBusiness.GetBranchPickerText(Eval("BranchID").ToString()) %></div>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="padding-left: 4%;">创建时间:</td>
                                    <td>
                                        <span style="float: left"><%#Convert.ToDateTime(Eval("CreateTime")).ToString("yyyy-MM-dd") %></span>
                                    </td>
                                </tr>
                            </table>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
        </div>

        <div style="margin: 30px auto 30px 270px;">
            <webdiyer:aspnetpager id="AspNetPager1" runat="server" urlpaging="true" alwaysshow="true"
                firstpagetext="首页" lastpagetext="末页" onpagechanged="AspNetPager1_PageChanged"
                nextpagetext="下一页" prevpagetext="上一页" custominfohtml=""
                showcustominfosection="Right" pagingbuttonspacing="0px" numericbuttoncount="5"
                cssclass="pages" currentpagebuttonclass="cpb" width="940px" PageSize="8">
            </webdiyer:aspnetpager>
        </div>
    </div>
</asp:Content>
